package com.dsfa.biz.busCenter;

import com.dsfa.platform.starter.db.jfinal.kit.Kv;
import com.dsfa.platform.starter.db.jfinal.plugin.activerecord.Db;
import com.dsfa.platform.starter.db.jfinal.plugin.activerecord.Record;
import org.springframework.stereotype.Service;

/**
 * @Description: 业务中台相关查询
 * @ClassName: BusServer
 * @Author: wangdm
 * @Date: 2024/1/12
 */
@Service
public class BusService {
    private static final String SQL_KEY = "biz.busCenter.";

    /**
     * @Description: 根据moduleId查询globalId，做全路径使用
     * @Author: wangdm
     * @Date: 2023/9/7
     */
    public Record getAppInfoByCode(String appCode) {
        Kv kv = Kv.by("appCode", appCode);
        return Db.use("uat_dreamone").findFirst(Db.getSqlPara(SQL_KEY + "getAppInfoByCode", kv));
    }
}
